package java_1_6;

public class Animal {
    protected String name;
    protected int age;
    public Animal(){}
    public Animal(String name,int age){
        this.name=name;
        this.age=age;
    }
     public void eat(String food){
        System.out.println("动物"+"正在吃"+food);
    }
    public static void test(){
        System.out.println("animal's test");
    }
    public Animal func(){
        return new Animal();
    }
}